package com.witframework.web.file;

import java.io.File;
import java.io.InputStream;

/** @pdOid 5a1a7bd6-4860-4696-8bc1-f56ec8936f58 */
public class FileDescriptor {
   /** @pdOid 4922c74d-1b51-49dc-9d08-b788c580d431 */
   private String name;
   /** @pdOid a0754790-4cdb-4f6f-965a-3e9acca9264d */
   private String originalFileName;
   /** @pdOid 9b6df1e6-3623-4a59-bbb8-e5cbb4ef9cf9 */
   private String contentType;
   /** @pdOid f6ca62d8-fd05-46ef-9e1b-fc5521d40646 */
   private long length;
   /** @pdOid 2fff39e4-0a06-4687-a811-5a381dfa548e */
   private InputStream is;
   /** @pdOid 4c4e2fd1-5779-46e6-9fc6-2b3607fc148e */
   private String fieldValue;
   private String filesystemName;
   /** @pdOid b1d38040-8658-42f9-9625-46c9553c000f */
   private File file;
   public File getFile() {
	return file;
}

public void setFile(File file) {
	this.file = file;
}

public FileDescriptor() {
   	
   }
   
   /** @param fileName 
    * @param contentType
    * @pdOid 61d2b300-1acf-44db-863d-d1149882028f */
   public FileDescriptor(String fileName, String contentType) {
   	this.originalFileName=fileName;
   	this.contentType=contentType;		
   }
   
   /** @param fileName 
    * @param contentType 
    * @param length
    * @pdOid c674ae34-a38f-4218-8a91-7baf07362b43 */
   public FileDescriptor(String fileName, String contentType, long length) {
   	this(fileName,contentType);	
   	this.length=length;		
   }
   
   /** @pdOid 410fbd03-e91e-47d5-a74f-cd5ff90fcbe7 */
   public String getOriginalFileName() {
   	return originalFileName;
   }
   
   /** @param fileName
    * @pdOid 4f81b894-987c-46b2-ae6a-d1a078200729 */
   public void setOriginalFileName(String fileName) {
   	this.originalFileName = fileName;
   }
   
   /** @pdOid 3292d51b-bbb8-41e4-a87e-9cebf13766b8 */
   public String getContentType() {
   	return contentType;
   }
   
   /** @param contentType
    * @pdOid 42975d73-5470-45f6-a653-3523bb9c6b9d */
   public void setContentType(String contentType) {
   	this.contentType = contentType;
   }
   
   /** @pdOid dd535705-1c89-4082-9550-12a16fb93e6c */
   public long length() {
   	return length;
   }
   
   /** @param length
    * @pdOid 0e4ae6e4-3862-4492-a42a-2cab761703f6 */
   public void setLength(long length) {
   	this.length = length;
   }
   
   /** @pdOid 77d7e4f4-a735-4ded-8e2e-497e2abeabf5 */
   public InputStream getIs() {
   	return is;
   }
   
   /** @param is
    * @pdOid c487204b-7994-4434-a1b8-4af8a372fb45 */
   public void setIs(InputStream is) {
   	this.is = is;
   }
   
   /** @pdOid f25522b7-d72c-4e36-b7d4-9030a4ec090a */
   public String getName() {
   	return name;
   }
   
   /** @param fieldName
    * @pdOid 4797f552-f1a0-492a-a5da-d40ed25c0172 */
   public void setName(String fieldName) {
   	this.name = fieldName;
   }
   
   /** @pdOid 27a7b929-0828-4b67-91de-035ac3d1e561 */
   public String getFieldValue() {
   	return fieldValue;
   }
   
   /** @param fieldValue
    * @pdOid cdc41990-51fc-4d24-a11b-0c541fe6011d */
   public void setFieldValue(String fieldValue) {
   	this.fieldValue = fieldValue;
   }

public String getFilesystemName() {
	return filesystemName;
}

public void setFilesystemName(String filesystemName) {
	this.filesystemName = filesystemName;
}

}